package com.coffee.admin.service.platform.dao;

import com.coffee.admin.api.platform.query.PlatformRolePermissionQuery;
import com.coffee.admin.service.platform.bean.PlatformRolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlatformRolePermissionDao {
	public PlatformRolePermission findById(Integer id);
	
	public PlatformRolePermission findByIdForUpdate(Integer id);
	
	public List<PlatformRolePermission> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") PlatformRolePermissionQuery param);

	public List<PlatformRolePermission> page(@Param("param") PlatformRolePermissionQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<PlatformRolePermission> list(@Param("param") PlatformRolePermissionQuery param);

	public PlatformRolePermission findFirst(@Param("param") PlatformRolePermissionQuery param);

	public Integer insert(PlatformRolePermission param);

	Integer insertBatch(List<PlatformRolePermission> list);

	public void updateById(@Param("param") PlatformRolePermission param);
	
	public Integer deleteById(Integer id);

	public Integer deleteByPlatformRoleId(Integer platformRoleId);

	public Integer deleteByIds(List<Integer> idList);
	
}